* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #ddd !important;
}

#start-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #eee;
}

.start-screen {
    max-width: 875px;
    padding: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.start-screen h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.instructions {
    text-align: left;
}

.instructions p {
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.instructions ul {
    margin: 15px 0 15px 30px;
    color: #333;
}

.instructions li {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* .instructions p:last-of-type {
    margin-top: 25px;
    text-align: center;
    font-size: 18px;
} */

.start-screen a {
    color: #0000EE;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.start-screen a:hover {
    color: #551A8B;
}

#main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
}

#image-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#image-container.finished {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent;
    height: 100vh;
}

#image-container.finished h2,
#image-container.finished h3 {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

#current-image {
    height: 60vh;
    width: 80vw;
    object-fit: contain;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#input-section {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

#error-message {
    position: absolute;
    right: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #8B0000;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    width: 134px;
    text-align: left;
    line-height: 1.3;
    z-index: 10;
}

#error-message a {
    color: #f1ccba;
    text-decoration: underline;
    cursor: pointer;
}

#error-message::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #8B0000;
}

.interpretation-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #666;
    border-radius: 2px;
    font-family: Arial, sans-serif;
    resize: vertical;
    min-height: 60px;
    background-color: #eee;
    color:#000;
}

.interpretation-input::placeholder {
    color: #888;
}

.interpretation-input:focus {
    color: #000 !important;
    outline: 2px solid #8B0000;
}

#bottom-section {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#progress {
    flex: 1;
}

#progress-bar-container, #demo-progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: white;
    border: 2px solid #0066A1;
    overflow: hidden;
}

#progress-bar, #demo-progress-bar {
    height: 100%;
    background-color: #0066A1;
    width: 0%;
    transition: width 0.3s ease;
}

#button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#submit-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: #0066A1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

#submit-button:hover {
    background-color: #004d7a;
}

#demo-submit-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: #0066A1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: default;
    white-space: nowrap;
}

/* Exit confirmation modal */
#exit-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

#exit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

#exit-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    text-align: center;
}

#exit-modal-content h2 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #333;
}

#exit-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

#exit-confirm-button,
#exit-cancel-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#exit-confirm-button {
    background-color: #d32f2f;
    color: white;
}

#exit-confirm-button:hover {
    background-color: #b71c1c;
}

#exit-cancel-button {
    background-color: #0066A1;
    color: white;
}

#exit-cancel-button:hover {
    background-color: #004d7a;
}

/* Countdown timer */
#countdown-timer {
    position: absolute;
    right: -120px;
    top: 0;
    font-size: 48px;
    font-weight: bold;
    color: #333;
    width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#countdown-timer.warning {
    color: #ff6b6b;
}

.tb_turn_on.js-turn-on-builder { display: none; }
